package com.burgeon.backend.SHOP.service;

import com.burgeon.backend.SHOP.entity.Brand;
import com.burgeon.backend.SHOP.entity.Classify;
import com.burgeon.backend.SHOP.entity.Goods;
import com.burgeon.backend.SHOP.service.ex.ErrorDataExceptionApp;

import java.util.HashMap;
import java.util.List;


public interface GoodsService {


    //库存为0 定时下架
    void TimingOfTheShelves();

    Goods getGoodsDataByBase(String id,String discount);

    List getGoodsBanners(String id);

    List<Goods> showGoodsByType(Integer start,String type,String token,String discount);

    List<Goods> getGoodsAll(String token,String discount,Integer start);

    List<Goods> getRecommend(String token,String discount);

    List<Goods> findGoodsByBrandId(Integer start,String id,String token,String discount);

    List<Brand> showBrand(String token);

    String queryGoodsCode(String code,String color,String size);

    List<Goods> findGoods(Integer start,String name,String token,String discount) throws ErrorDataExceptionApp;

    HashMap getGoodsData(String token,String discount) throws ErrorDataExceptionApp;

    Goods findGoodsByIdByappOrderConfig(String id,String uid,String discount,String isPlus);

    Goods findGoodsById(String id,String uid,String discount,String isPlus);

    Goods findGoodsNumById(String id,String uid,String token,String discount);

    List<Classify> getClassify(String token);

    List<Goods> getGoodsByClassify(Integer start,String token,String classify,String discount);

    Goods findGoodsInfoById(String gid);

}
